.class public Lcom/a0soft/gphone/app2sd/a/g;
.super Ljava/lang/Object;
.source "AppObj.java"


# static fields
.field private static l:I

.field private static m:Landroid/os/Handler;

.field private static final n:Ljava/lang/String;


# instance fields
.field a:Ljava/lang/String;

.field b:Ljava/lang/String;

.field c:Z

.field d:Z

.field e:Z

.field f:J

.field g:J

.field h:J

.field private i:Landroid/graphics/drawable/Drawable;

.field private j:Z

.field private k:Landroid/content/pm/PackageInfo;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 48
    const/high16 v0, -0x8000

    sput v0, Lcom/a0soft/gphone/app2sd/a/g;->l:I

    .line 60
    const-class v0, Lcom/a0soft/gphone/app2sd/a/g;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/a0soft/gphone/app2sd/a/g;->n:Ljava/lang/String;

    return-void
.end method

.method constructor <init>(Landroid/content/pm/PackageManager;Landroid/content/pm/PackageInfo;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 63
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 64
    sget v0, Lcom/a0soft/gphone/app2sd/a/g;->l:I

    const/high16 v1, -0x8000

    if-ne v0, v1, :cond_0

    .line 65
    invoke-static {}, Lcom/a0soft/gphone/app2sd/main/ab;->a()I

    move-result v0

    sput v0, Lcom/a0soft/gphone/app2sd/a/g;->l:I

    .line 68
    :cond_0
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/a/g;->i()V

    .line 70
    iget-object v0, p2, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->a:Ljava/lang/String;

    .line 71
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->i:Landroid/graphics/drawable/Drawable;

    .line 73
    iput-object p2, p0, Lcom/a0soft/gphone/app2sd/a/g;->k:Landroid/content/pm/PackageInfo;

    .line 75
    invoke-direct {p0, p2}, Lcom/a0soft/gphone/app2sd/a/g;->a(Landroid/content/pm/PackageInfo;)V

    .line 78
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->c:Z

    if-nez v0, :cond_1

    .line 90
    :goto_0
    return-void

    .line 80
    :cond_1
    iget-object v0, p2, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    if-eqz v0, :cond_3

    .line 81
    iget-object v0, p2, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    invoke-virtual {v0, p1}, Landroid/content/pm/ApplicationInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->b:Ljava/lang/String;

    .line 85
    :goto_1
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 86
    const-string v0, "unknown"

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->b:Ljava/lang/String;

    .line 89
    :cond_2
    invoke-direct {p0, p2}, Lcom/a0soft/gphone/app2sd/a/g;->b(Landroid/content/pm/PackageInfo;)V

    goto :goto_0

    .line 83
    :cond_3
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->a:Ljava/lang/String;

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->b:Ljava/lang/String;

    goto :goto_1
.end method

.method private static a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;)I
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 385
    :try_start_0
    invoke-virtual {p0, p2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v0

    .line 386
    invoke-virtual {v0, p1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move-result v0

    .line 390
    :goto_0
    return v0

    .line 388
    :catch_0
    move-exception v0

    const/16 v0, -0x63

    goto :goto_0

    .line 390
    :catch_1
    move-exception v0

    const/16 v0, -0x64

    goto :goto_0
.end method

.method static synthetic a(Lcom/a0soft/gphone/app2sd/a/g;Landroid/content/pm/PackageInfo;)Landroid/content/pm/PackageInfo;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 24
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/a/g;->k:Landroid/content/pm/PackageInfo;

    return-object p1
.end method

.method static synthetic a(Lcom/a0soft/gphone/app2sd/a/g;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 24
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/a/g;->i:Landroid/graphics/drawable/Drawable;

    return-object p1
.end method

.method private a(Landroid/content/pm/PackageInfo;)V
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x1

    .line 260
    if-nez p1, :cond_0

    .line 261
    iput-boolean v2, p0, Lcom/a0soft/gphone/app2sd/a/g;->c:Z

    .line 281
    :goto_0
    return-void

    .line 265
    :cond_0
    iget-object v0, p1, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    .line 266
    if-nez v0, :cond_1

    .line 267
    iput-boolean v2, p0, Lcom/a0soft/gphone/app2sd/a/g;->c:Z

    goto :goto_0

    .line 274
    :cond_1
    iget v0, v0, Landroid/content/pm/ApplicationInfo;->flags:I

    .line 275
    and-int/lit8 v1, v0, 0x1

    if-eqz v1, :cond_2

    and-int/lit16 v0, v0, 0x80

    if-nez v0, :cond_2

    .line 277
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->c:Z

    goto :goto_0

    .line 280
    :cond_2
    iput-boolean v2, p0, Lcom/a0soft/gphone/app2sd/a/g;->c:Z

    goto :goto_0
.end method

.method static synthetic a(Lcom/a0soft/gphone/app2sd/a/g;Lcom/a0soft/gphone/app2sd/a/j;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 24
    invoke-direct {p0, p1}, Lcom/a0soft/gphone/app2sd/a/g;->a(Lcom/a0soft/gphone/app2sd/a/j;)V

    return-void
.end method

.method private a(Lcom/a0soft/gphone/app2sd/a/j;)V
    .locals 4
    .parameter

    .prologue
    .line 238
    .line 239
    invoke-static {}, Lcom/a0soft/gphone/app2sd/a/g;->m()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/a0soft/gphone/app2sd/a/i;

    invoke-direct {v1, p0, p1, p0}, Lcom/a0soft/gphone/app2sd/a/i;-><init>(Lcom/a0soft/gphone/app2sd/a/g;Lcom/a0soft/gphone/app2sd/a/j;Lcom/a0soft/gphone/app2sd/a/g;)V

    const-wide/16 v2, 0x320

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 255
    return-void
.end method

.method static synthetic a(Lcom/a0soft/gphone/app2sd/a/g;)Z
    .locals 1
    .parameter

    .prologue
    .line 24
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->j:Z

    return v0
.end method

.method static synthetic b(Lcom/a0soft/gphone/app2sd/a/g;)Landroid/content/pm/PackageInfo;
    .locals 1
    .parameter

    .prologue
    .line 24
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->k:Landroid/content/pm/PackageInfo;

    return-object v0
.end method

.method private b(Landroid/content/Context;Lcom/a0soft/gphone/app2sd/a/j;)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 225
    invoke-static {}, Lcom/a0soft/gphone/app2sd/a/g;->m()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/a0soft/gphone/app2sd/a/h;

    invoke-direct {v1, p0, p1, p2}, Lcom/a0soft/gphone/app2sd/a/h;-><init>(Lcom/a0soft/gphone/app2sd/a/g;Landroid/content/Context;Lcom/a0soft/gphone/app2sd/a/j;)V

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 233
    return-void
.end method

.method private b(Landroid/content/pm/PackageInfo;)V
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x2

    const/4 v2, 0x0

    const/4 v3, 0x1

    .line 293
    iput-boolean v2, p0, Lcom/a0soft/gphone/app2sd/a/g;->d:Z

    .line 295
    if-nez p1, :cond_1

    .line 361
    :cond_0
    :goto_0
    return-void

    .line 299
    :cond_1
    iget-object v0, p1, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    .line 300
    if-eqz v0, :cond_0

    .line 331
    iget v0, v0, Landroid/content/pm/ApplicationInfo;->flags:I

    .line 333
    const/high16 v1, 0x4

    and-int/2addr v1, v0

    if-eqz v1, :cond_2

    move v1, v3

    :goto_1
    iput-boolean v1, p0, Lcom/a0soft/gphone/app2sd/a/g;->e:Z

    .line 335
    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/a/g;->e:Z

    if-eqz v1, :cond_3

    .line 336
    iput-boolean v3, p0, Lcom/a0soft/gphone/app2sd/a/g;->d:Z

    goto :goto_0

    :cond_2
    move v1, v2

    .line 333
    goto :goto_1

    .line 340
    :cond_3
    invoke-static {}, Lcom/a0soft/gphone/a/a;->b()I

    move-result v1

    const/16 v2, 0x8

    if-gt v1, v2, :cond_5

    .line 341
    const/high16 v1, 0x10

    .line 345
    :goto_2
    and-int/2addr v1, v0

    if-nez v1, :cond_0

    and-int/lit8 v0, v0, 0x1

    if-nez v0, :cond_0

    .line 347
    const-class v0, Landroid/content/pm/PackageInfo;

    const-string v1, "installLocation"

    invoke-static {v0, p1, v1}, Lcom/a0soft/gphone/app2sd/a/g;->a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;)I

    move-result v0

    .line 348
    if-eq v0, v4, :cond_4

    if-nez v0, :cond_6

    .line 350
    :cond_4
    iput-boolean v3, p0, Lcom/a0soft/gphone/app2sd/a/g;->d:Z

    goto :goto_0

    .line 343
    :cond_5
    const/high16 v1, 0x2000

    goto :goto_2

    .line 352
    :cond_6
    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    .line 353
    sget v0, Lcom/a0soft/gphone/app2sd/a/g;->l:I

    if-ne v0, v4, :cond_0

    .line 356
    iput-boolean v3, p0, Lcom/a0soft/gphone/app2sd/a/g;->d:Z

    goto :goto_0
.end method

.method static synthetic c(Lcom/a0soft/gphone/app2sd/a/g;)Z
    .locals 1
    .parameter

    .prologue
    .line 24
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->j:Z

    return v0
.end method

.method private static m()Landroid/os/Handler;
    .locals 1

    .prologue
    .line 217
    sget-object v0, Lcom/a0soft/gphone/app2sd/a/g;->m:Landroid/os/Handler;

    if-nez v0, :cond_0

    .line 218
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    sput-object v0, Lcom/a0soft/gphone/app2sd/a/g;->m:Landroid/os/Handler;

    .line 219
    :cond_0
    sget-object v0, Lcom/a0soft/gphone/app2sd/a/g;->m:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public final a()Ljava/lang/String;
    .locals 1

    .prologue
    .line 124
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->b:Ljava/lang/String;

    return-object v0
.end method

.method public final a(Landroid/content/Context;Lcom/a0soft/gphone/app2sd/a/j;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 176
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->i:Landroid/graphics/drawable/Drawable;

    if-eqz v0, :cond_0

    .line 204
    :goto_0
    return-void

    .line 182
    :cond_0
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->j:Z

    if-eqz v0, :cond_1

    .line 187
    invoke-direct {p0, p2}, Lcom/a0soft/gphone/app2sd/a/g;->a(Lcom/a0soft/gphone/app2sd/a/j;)V

    goto :goto_0

    .line 192
    :cond_1
    :try_start_0
    new-instance v0, Lcom/a0soft/gphone/app2sd/a/k;

    invoke-direct {v0, p1, p2}, Lcom/a0soft/gphone/app2sd/a/k;-><init>(Landroid/content/Context;Lcom/a0soft/gphone/app2sd/a/j;)V

    const/4 v1, 0x1

    new-array v1, v1, [Lcom/a0soft/gphone/app2sd/a/g;

    const/4 v2, 0x0

    aput-object p0, v1, v2

    invoke-virtual {v0, v1}, Lcom/a0soft/gphone/app2sd/a/k;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 193
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->j:Z
    :try_end_0
    .catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 201
    :catch_0
    move-exception v0

    invoke-direct {p0, p1, p2}, Lcom/a0soft/gphone/app2sd/a/g;->b(Landroid/content/Context;Lcom/a0soft/gphone/app2sd/a/j;)V

    goto :goto_0
.end method

.method public final a(Landroid/content/Context;)Z
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x0

    .line 98
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    .line 100
    :try_start_0
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/a/g;->a:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    .line 101
    if-nez v0, :cond_0

    move v0, v3

    .line 108
    :goto_0
    return v0

    .line 102
    :cond_0
    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/a/g;->e:Z

    .line 103
    invoke-direct {p0, v0}, Lcom/a0soft/gphone/app2sd/a/g;->b(Landroid/content/pm/PackageInfo;)V

    .line 104
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->e:Z
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    if-eq v1, v0, :cond_1

    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    move v0, v3

    goto :goto_0

    .line 108
    :catch_0
    move-exception v0

    move v0, v3

    goto :goto_0
.end method

.method public final b()J
    .locals 4

    .prologue
    const-wide/16 v2, 0x0

    .line 130
    iget-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->g:J

    cmp-long v0, v0, v2

    if-lez v0, :cond_0

    .line 131
    iget-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->g:J

    .line 132
    :goto_0
    return-wide v0

    :cond_0
    move-wide v0, v2

    goto :goto_0
.end method

.method public final c()J
    .locals 4

    .prologue
    const-wide/16 v2, 0x0

    .line 138
    iget-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->h:J

    cmp-long v0, v0, v2

    if-lez v0, :cond_0

    .line 139
    iget-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->h:J

    .line 140
    :goto_0
    return-wide v0

    :cond_0
    move-wide v0, v2

    goto :goto_0
.end method

.method public final d()J
    .locals 4

    .prologue
    const-wide/16 v2, 0x0

    .line 146
    iget-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->f:J

    cmp-long v0, v0, v2

    if-lez v0, :cond_0

    .line 147
    iget-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->f:J

    .line 148
    :goto_0
    return-wide v0

    :cond_0
    move-wide v0, v2

    goto :goto_0
.end method

.method public final e()J
    .locals 6

    .prologue
    const-wide/16 v4, 0x0

    .line 154
    .line 155
    iget-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->g:J

    cmp-long v0, v0, v4

    if-lez v0, :cond_2

    .line 156
    iget-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->g:J

    add-long/2addr v0, v4

    .line 157
    :goto_0
    iget-wide v2, p0, Lcom/a0soft/gphone/app2sd/a/g;->h:J

    cmp-long v2, v2, v4

    if-lez v2, :cond_0

    .line 158
    iget-wide v2, p0, Lcom/a0soft/gphone/app2sd/a/g;->h:J

    add-long/2addr v0, v2

    .line 159
    :cond_0
    iget-wide v2, p0, Lcom/a0soft/gphone/app2sd/a/g;->f:J

    cmp-long v2, v2, v4

    if-lez v2, :cond_1

    .line 160
    iget-wide v2, p0, Lcom/a0soft/gphone/app2sd/a/g;->f:J

    add-long/2addr v0, v2

    .line 161
    :cond_1
    return-wide v0

    :cond_2
    move-wide v0, v4

    goto :goto_0
.end method

.method public final f()Ljava/lang/String;
    .locals 1

    .prologue
    .line 165
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->a:Ljava/lang/String;

    return-object v0
.end method

.method public final g()Z
    .locals 1

    .prologue
    .line 168
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->i:Landroid/graphics/drawable/Drawable;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final h()Landroid/graphics/drawable/Drawable;
    .locals 1

    .prologue
    .line 171
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->i:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method final i()V
    .locals 2

    .prologue
    const-wide/16 v0, -0x1

    .line 209
    iput-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->f:J

    .line 210
    iput-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->g:J

    .line 211
    iput-wide v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->h:J

    .line 212
    return-void
.end method

.method public final j()Z
    .locals 1

    .prologue
    .line 287
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->c:Z

    return v0
.end method

.method public final k()Z
    .locals 1

    .prologue
    .line 366
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->d:Z

    return v0
.end method

.method public final l()Z
    .locals 1

    .prologue
    .line 372
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/g;->e:Z

    return v0
.end method
